﻿using UnityEngine;
using System.Collections;

// 可吃道具
public class EatAble : MonoBehaviour
{
    protected SpriteRenderer _sr;
    protected Collider2D _collider;
    protected string _soundPath;


    public void BeEat(HumanCtrl mainPlayer)
    {
        SoundMgr.Instance.AddSceneSoundEffect(_soundPath, transform.position);
        _collider.enabled = false;
        _sr.enabled = false;

        Destroy(gameObject, 1f);
    }
}
